package com.example.demo_news.Repository;

import java.util.List;


import com.example.demo_news.entity.NewsPhoto;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface NewsPhotoRepository extends JpaRepository<NewsPhoto, Integer>{
    public List<NewsPhoto>findNewsPhotoByNews(Integer newsId);
    //根据新闻标识查找图片集
}
